The argument _s is a socket that has been created with _ssss_oooo_cccc_kkkk_eeee_tttt and bound to
an address with _bbbb_iiii_nnnn_dddd, and that is listening for connections after a call
to _llll_iiii_ssss_tttt_eeee_nnnn. _aaaa_cccc_cccc_eeee_pppp_tttt extracts the first connection on the queue of pending
connections, creates a new socket with the properties of _s, and allocates
a new file descriptor, _n_s, for the socket. If no pending connections are
present on the queue and the socket is not marked as non-blocking, _aaaa_cccc_cccc_eeee_pppp_tttt
blocks the caller until a connection is present. If the socket is marked
as non-blocking and no pending connections are present on the queue,
_aaaa_cccc_cccc_eeee_pppp_tttt returns an error as described below. _aaaa_cccc_cccc_eeee_pppp_tttt uses the _nnnn_eeee_tttt_cccc_oooo_nnnn_ffff_iiii_gggg
file to determine the STREAMS device file name associated with _s. This
is the device on which the connect indication will be accepted. The
accepted socket, _n_s, is used to read and write data to and from the
socket that connected to _n_s; it is not used to accept more connections.
The original socket (_s) remains open for accepting further connections.
The argument _a_d_d_r is a result parameter that is filled in with the
address of the connecting entity as it is known to the communications
layer. The exact format of the _a_d_d_r parameter is determined by the
domain in which the communication occurs.
_a_d_d_r_l_e_n is a value-result parameter. Initially, it contains the amount
of space pointed to by _a_d_d_r; on return it contains the length in bytes of
the address returned.
_aaaa_cccc_cccc_eeee_pppp_tttt is used with connection-based socket types, currently with
The type of address structure passed to _aaaa_cccc_cccc_eeee_pppp_tttt depends on the address
family. UNIX domain sockets (address family _AAAA_FFFF______UUUU_NNNN_IIII_XXXX) require a
_ssss_oooo_cccc_kkkk_eeee_tttt_aaaa_dddd_dddd_rrrr______uuuu_nnnn structure as defined in _ssss_yyyy_ssss_////_uuuu_nnnn_...._hhhh; Internet domain sockets
(address family _AAAA_FFFF______IIII_NNNN_EEEE_TTTT) require a _ssss_oooo_cccc_kkkk_aaaa_dddd_dddd_rrrr______iiii_nnnn structure as defined in
_nnnn_eeee_tttt_iiii_nnnn_eeee_tttt_////_iiii_nnnn_...._hhhh. Other address families may require other structures. Use
the structure appropriate to the address family; cast the structure
address to a generic _cccc_aaaa_dddd_dddd_rrrr______tttt in the call to _aaaa_cccc_cccc_eeee_pppp_tttt and pass the size of